﻿using System;
using System.ComponentModel.DataAnnotations;

namespace AssetsSys.WebApi.Models.Assets
{
    /// <summary>
    /// 添加固定资产
    /// </summary>
    public class CreateAssetsViewModel
    {
        /// <summary>
        /// 资产名称
        /// </summary>
        [Required]
        public string AssetsName { get; set; }
        /// <summary>
        /// 资产描述
        /// </summary>
        [Required]
        public string AssetsDescribe { get; set; }
        /// <summary>
        /// 资产价值
        /// </summary>
        [Required]
        public decimal Decimal { get; set; }
        /// <summary>
        /// 资产类型
        /// </summary>
        [Required]
        public Guid TypeId { get; set; }
        /// <summary>
        /// 资产来源
        /// </summary>
        [Required]
        public Guid SourceId { get; set; }
        /// <summary>
        /// 资产状况
        /// </summary>
        [Required]
        public Guid StatusId { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [Required]
        public Guid PrincipalUserId { get; set; }
        /// <summary>
        /// 入库人
        /// </summary>
        public Guid StorageUserId { get; set; }
    }
}